<div class="febs-container" id="modelAttach-edit">
    <div class="febs-open-body febs-open-body layui-fluid" lay-title="附体详情">
        <form class="layui-form" action="" lay-filter="modelAttach-edit-form">
            <input type="hidden" name="id">

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">所属项目：</label>
                            <div class="layui-input-block">
                                <!--<input type="text" name="projectCode" autocomplete="off" class="layui-input" maxlength="255" >-->
                                <select name="projectCode" id="projectCode" lay-verify="required" >
                                    <option th:each="item:${projList }"
                                            th:value="${item.projectCode}" th:text="${item.projectName}"
                                            th:selected="${modelAttach.projectCode ==item.projectCode}">
                                </select>
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">附体编号：</label>
                            <div class="layui-input-block">
                                <input type="text" name="attachCode" autocomplete="off" class="layui-input"
                                       maxlength="32" lay-verify="required">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">附体来源：</label>
                            <div class="layui-input-block">
                                <select name="source" id="sourceSelect" lay-filter="sourceSelect" lay-verify="required">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-col-xs6 febs-hide" id="origAttachCodeDiv">
                            <label class="layui-form-label febs-form-item-require">原附体编号：</label>
                            <div class="layui-input-block">
                                <input type="text" name="origAttachCode" autocomplete="off" class="layui-input"
                                       maxlength="32" >
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">附体类型：</label>
                            <div class="layui-input-block">
                                <select name="attachType" id="attachTypeSelect" lay-filter="attachTypeSelect" lay-verify="required">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require" >名称：</label>
                            <div class="layui-input-block">
                                <input type="text" name="attachName" autocomplete="off" class="layui-input"
                                       maxlength="32" lay-verify="required">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">要求完成时间：</label>
                            <div class="layui-input-block">
                                <input type="text" name="demandEnddate" id="demandEnddate" autocomplete="off" class="layui-input" lay-verify="required" maxlength="8" >
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注：</label>
                    <div class="layui-input-block">
                        <input type="text" name="memo" autocomplete="off" class="layui-input"
                               maxlength="300" >
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div id="fileUpload" style="height: 120px ;width: 98%"></div>
                    </div>
                </div>

            <div class="layui-form-item" align="center">
                <button class="layui-btn" lay-submit="" lay-filter="modelAttach-edit-form-submit" id="submit">提交</button>
                <button type="reset" class="layui-btn" id="reset">返回</button>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var modelAttachData = [[${modelAttach}]];
    var attachs = [[${attachs}]];
    var ftNo = [[${ftNo}]];
</script>
<script th:src="@{/febs/js/sypq/modelAttach/modelAttachEdit.js(v=1)}"></script>
<style>
    #modelAttach-edit .layui-form-label {
        width: 140px;
    }
    #modelAttach-edit .layui-input-block {
        margin-left: 170px;
    }
</style>